import request from '@/utils/request'

// 查询组织架构列表
export function listMemberOrganizational(query) {
  return request({
    url: '/api/memberOrganizational/list',
    method: 'get',
    params: query
  })
}

// 查询组织架构详细
export function getMemberOrganizational(organizationalId) {
  return request({
    url: '/api/memberOrganizational/' + organizationalId,
    method: 'get'
  })
}

// 新增组织架构
export function addMemberOrganizational(data) {
  return request({
    url: '/api/memberOrganizational/add',
    method: 'post',
    data: data
  })
}

// 修改组织架构
export function updateMemberOrganizational(data) {
  return request({
    url: '/api/memberOrganizational/update',
    method: 'post',
    data: data
  })
}

// 删除组织架构
export function delMemberOrganizational(organizationalId) {
  return request({
    url: '/api/memberOrganizational/delete/' + organizationalId,
    method: 'get'
  })
}
